package com.yonyou.pmclouds.workconnect.mapper;

import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.workConnect.entity.WorkConReceiverVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface WorkConReceiverMapper extends BaseMapper<WorkConReceiverVO> {

    WorkConReceiverVO[] queryByIds(@Param("ids") String[] ids);

    WorkConReceiverVO[] queryByWorkConnect(@Param("pkWorkconnect") String pkWorkconnect);

    WorkConReceiverVO[] queryNotAcceptedVOs(@Param("pkWorkconnect") String pkWorkconnect);

    WorkConReceiverVO queryByPkWorkconnectAndPkReceiver(@Param("pkWorkconnect") String pkWorkconnect, @Param("pkReceiver") String pkReceiver);

    WorkConReceiverVO[] queryByPkConnects(@Param("pkWorkconnects") String[] pkWorkconnects) throws BusinessException;
}
